<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>访问受限 - 时间限制</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #001510);
            background-size: 400% 400%;
            animation: gradientBG 15s ease infinite;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
            overflow: hidden;
            padding: 20px;
        }

        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .container {
            background: rgba(25, 25, 35, 0.85);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            width: 100%;
            max-width: 800px;
            padding: 40px;
            text-align: center;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            z-index: -1;
        }

        .clock-icon {
            font-size: 80px;
            margin-bottom: 30px;
            color: #ff6b6b;
            text-shadow: 0 0 20px rgba(255, 107, 107, 0.7);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            color: #ffd166;
            text-shadow: 0 0 10px rgba(255, 209, 102, 0.5);
        }

        .error-message {
            font-size: 1.8rem;
            margin-bottom: 40px;
            line-height: 1.6;
            background: linear-gradient(90deg, #ff9a9e, #fad0c4);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .time-info {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin: 30px 0;
        }

        .time-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 20px;
            min-width: 180px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s;
        }

        .time-card:hover {
            transform: translateY(-10px);
            background: rgba(255, 255, 255, 0.15);
        }

        .time-card h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: #06d6a0;
        }

        .time-card p {
            font-size: 2.2rem;
            font-weight: bold;
            color: #ffd166;
        }

        .current-time {
            font-size: 1.8rem;
            margin: 30px 0;
            padding: 15px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            display: inline-block;
            color: #4cc9f0;
        }

        .redirect-info {
            margin-top: 30px;
            font-size: 1.3rem;
            color: #a9a9a9;
        }

        .countdown {
            display: inline-block;
            font-size: 1.8rem;
            font-weight: bold;
            color: #ff6b6b;
            min-width: 40px;
        }

        .home-button {
            display: inline-block;
            margin-top: 30px;
            padding: 15px 40px;
            background: linear-gradient(45deg, #ff6b6b, #ff8e53);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-size: 1.3rem;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }

        .home-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
            background: linear-gradient(45deg, #ff8e53, #ff6b6b);
        }

        .night-illustration {
            margin-top: 40px;
            position: relative;
            height: 150px;
        }

        .moon {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 80px;
            background: #f8f9fa;
            border-radius: 50%;
            box-shadow: 0 0 40px #ffdd59;
            z-index: 2;
        }

        .stars {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .star {
            position: absolute;
            background: white;
            border-radius: 50%;
            animation: twinkle 3s infinite;
        }

        @keyframes twinkle {
            0%, 100% { opacity: 0.2; }
            50% { opacity: 1; }
        }

        .ground {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40px;
            background: #1a1a2e;
            border-radius: 50% 50% 0 0;
        }

        @media (max-width: 768px) {
            .container {
                padding: 30px 20px;
            }

            h1 {
                font-size: 2.5rem;
            }

            .error-message {
                font-size: 1.4rem;
            }

            .time-info {
                flex-direction: column;
                gap: 20px;
                align-items: center;
            }

            .time-card {
                width: 100%;
                max-width: 250px;
            }
        }
    </style>
</head>
<body>
<div class="container">
    <div class="clock-icon">
        <i class="fas fa-clock"></i>
    </div>

    <h1>访问受限</h1>

    <div class="error-message">
        本网站只能在 06:00 - 23:00 之间访问
    </div>

    <div class="time-info">
        <div class="time-card">
            <h3>开始时间</h3>
            <p>06:00 AM</p>
        </div>

        <div class="time-card">
            <h3>结束时间</h3>
            <p>11:00 PM</p>
        </div>
    </div>

    <div class="current-time">
        当前时间: <span id="current-time">00:00:00</span>
    </div>

    <div class="redirect-info">
        <p>页面将在 <span class="countdown" id="countdown">10</span> 秒后自动跳转至首页</p>
        <p>或者您可以点击下方按钮立即返回</p>
    </div>

    <a href="index.html" class="home-button">
        返回首页 <i class="fas fa-arrow-right"></i>
    </a>

    <div class="night-illustration">
        <div class="moon"></div>
        <div class="stars" id="stars-container"></div>
        <div class="ground"></div>
    </div>
</div>

<script>
    // 显示当前时间并实时更新
    function updateCurrentTime() {
        const now = new Date();
        const hours = String(now.getHours()).padStart(2, '0');
        const minutes = String(now.getMinutes()).padStart(2, '0');
        const seconds = String(now.getSeconds()).padStart(2, '0');
        document.getElementById('current-time').textContent = `${hours}:${minutes}:${seconds}`;
    }

    // 初始显示时间
    updateCurrentTime();
    // 每秒更新时间
    setInterval(updateCurrentTime, 1000);

    // 倒计时功能
    let countdown = 10;
    const countdownElement = document.getElementById('countdown');

    const countdownInterval = setInterval(() => {
        countdown--;
        countdownElement.textContent = countdown;

        if (countdown <= 0) {
            clearInterval(countdownInterval);
            window.location.href = 'index.html';
        }
    }, 1000);

    // 创建星空效果
    const starsContainer = document.getElementById('stars-container');
    const starCount = 100;

    for (let i = 0; i < starCount; i++) {
        const star = document.createElement('div');
        star.classList.add('star');

        // 随机位置
        const left = Math.random() * 100;
        const top = Math.random() * 100;

        // 随机大小 (1-3px)
        const size = Math.random() * 2 + 1;

        // 随机闪烁延迟
        const delay = Math.random() * 5;

        star.style.left = `${left}%`;
        star.style.top = `${top}%`;
        star.style.width = `${size}px`;
        star.style.height = `${size}px`;
        star.style.animationDelay = `${delay}s`;

        starsContainer.appendChild(star);
    }
</script>
</body>
</html>